package com.gan.simple_init.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.gan.simple_init.common.base.ResponseResult;
import com.gan.simple_init.model.user.dto.UserLoginDTO;
import com.gan.simple_init.model.user.dto.UserUpdateDTO;
import com.gan.simple_init.model.user.entity.SysUser;
import org.springframework.security.core.userdetails.UserDetails;

import javax.servlet.http.HttpServletRequest;

/**
* @description 针对表【sys_user(用户)】的数据库操作Service
* @createDate 2023-08-08 17:25:27
*/
public interface SysUserService extends IService<SysUser> {

    UserDetails getLoginUser(String userAccount);

    ResponseResult<?> login(HttpServletRequest httpServletRequest,UserLoginDTO userLoginDTO);

    ResponseResult<?> register(UserLoginDTO userLoginDTO);

    SysUser getUserInfoByUserName(String userName);

    ResponseResult<?> refreshToken(HttpServletRequest request);

}
